package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.OtherBlocketRecord;
import com.ruoyi.system.domain.OtherManualAbsenceRecord;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.HashMap;
import java.util.List;

public interface OtherManualAbsenceRecordMapper extends BaseMapper<OtherManualAbsenceRecord> {
    @Select("select wxid ,displayName, SUM(count) as totalvalue from ManualAbsenceRecord where roomID=  #{roomId}  and roundDate BETWEEN #{startDate} AND #{endDate} group by wxid,displayName")
    public List<HashMap> getManualAbsenceRecord(@Param("roomId") String roomID, @Param("startDate") String startDate, @Param("endDate")String endDate, @Param("startTime")String startTime, @Param("endTime")String endTime);

}
